package com.mr.shiro.commons.shiro;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;

/**
 * Class: AuthRealm
 * User (作者):MRui
 * TODO (描述)：shiro授权认证
 * Date 2019-01-13 22:39
 */
public class AuthRealm extends AuthorizingRealm {

    /**
    * User (作者): MRui
    * TODO (描述)：授权
    * Data：2019-01-13 22:42
    */
    @Override
    protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) {
        return null;
    }

    /**
    * User (作者): MRui
    * TODO (描述)：认证登陆
    * Data：2019-01-13 22:42
    */
    @Override
    protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
        return null;
    }
}
